package cn.com.haopy.yue.ai.db.entity.arisk;

import cn.com.haopy.yue.ai.db.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @Description: TODO
 * @Author DuTao
 * @Date 2025/4/14 17:18
 */
@Data
@TableName(value = "arisk_user_human_source", autoResultMap = true)
@ApiModel(value = "数字人-资源占用表")
public class AIRiskUserHumanSource extends BaseEntity {
    @TableField(value = "user_id")
    @ApiModelProperty(value = "用户ID")
    private Integer userId;

    @TableField(value = "source_id")
    @ApiModelProperty(value = "资源id")
    private String sourceId;

    @TableField(value = "is_finish")
    @ApiModelProperty(value = "是否结束")
    private Boolean isFinish;

    @TableField(value = "is_force_finish")
    @ApiModelProperty(value = "是否结束")
    private Boolean isForceFinish;

    @TableField(value = "sign")
    @ApiModelProperty(value = "对应的签名")
    private String sign;

    @TableField(value = "queue_id")
    @ApiModelProperty(value = "排队ID")
    private Integer queueId;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "start_time")
    @ApiModelProperty(value = "开始时间")
    private LocalDateTime startTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "finish_time")
    @ApiModelProperty(value = "开始时间")
    private LocalDateTime finishTime;

}
